.class Lcom/waiqin365/lightwork/tracker/c;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const v5, 0x7f0802bf

    const/4 v4, 0x1

    const/4 v2, 0x0

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightwork/tracker/b/k;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/b/k;->b()Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/b/k;->c()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/b/k;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    iget-object v3, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-virtual {v3, v5}, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/b/k;->c()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v4, v2

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/b/k;->a()Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v4

    move v1, v2

    :goto_1
    if-ge v1, v4, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;->a(Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;)Lcom/waiqin365/lightwork/tracker/model/c;

    move-result-object v5

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/aa;

    invoke-virtual {v5, v0}, Lcom/waiqin365/lightwork/tracker/model/c;->a(Lcom/waiqin365/lightwork/tracker/model/aa;)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_1

    :cond_1
    if-nez v4, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;->b(Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    const v3, 0x7f08058e

    invoke-virtual {v1, v3}, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/view/NoNetView;->setMsg(Ljava/lang/String;Z)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;->b(Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;->b(Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto/16 :goto_0

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-static {v1}, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;->a(Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;)Lcom/waiqin365/lightwork/tracker/model/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightwork/tracker/model/c;->getCount()I

    move-result v1

    if-nez v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-static {v1}, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;->b(Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    iget-object v3, p0, Lcom/waiqin365/lightwork/tracker/c;->a:Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-virtual {v3, v5}, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/b/k;->c()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v4, v2

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x4
        :pswitch_0
    .end packed-switch
.end method
